package com.mida.bms.report.process.impl;

import com.mida.bms.report.process.DocReportProcess;
import com.mida.bms.report.service.DocReportService;
import com.mida.bms.report.vo.DocReportPreservationRequest;
import com.mida.bms.report.vo.ReportResult;
import com.mida.tool.common.result.ListResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DocReportProcessImpl implements DocReportProcess{

    @Autowired
    private DocReportService docReportService;

    @Override
    public ListResult<ReportResult> saveTemporarily(DocReportPreservationRequest request) {
        return docReportService.saveTemporarily(request);
    }

    @Override
    public void requestCheck(DocReportPreservationRequest request) {
        docReportService.requestCheck(request);
    }

    @Override
    public ListResult<String> saveDocReport(DocReportPreservationRequest request) {
        return docReportService.saveDocReport(request);
    }
}
